package com.company;

public class Main {

    public static void main(String[] args) {
	// write your code here
        int triangleLength = 11;
        int i = 0;
        while (i < triangleLength) {
            System.out.print("\n");
            int j = 0;
            while (j < triangleLength * 2) {
                if (i == triangleLength - 1) {
                    if (j != 0 &&
                            j % 2 == 1) {
                        System.out.print("*");
                    }else {
                        System.out.print(" ");
                    }
                    j++;
                    continue;
                }
                if (j == triangleLength + i ||
                        j == triangleLength - i) {
                    System.out.print("*");
                }else {
                    System.out.print(" ");
                }
                j++;
            }
            i++;
        }




    }
}
